home *** CD-ROM | disk | FTP | other *** search
- class classes.fx.PowerUpDrain
- {
- var x;
- var y;
- var clip;
- var xMov;
- var yMov;
- var Name = "powerUpDrain";
- function PowerUpDrain(px, py, pid)
- {
- this.x = px;
- this.y = py;
- _root.d = _root.d + 1;
- this.clip = _root.attachMovie("powerUpDrain","powerUpDrainClip",_root.d + 499990);
- this.clip._x = this.x;
- this.clip._y = this.y;
- this.xMov = _root.randRange2(-2,2);
- this.yMov = _root.randRange2(-1,-3);
- }
- function main()
- {
- if(this.x > 1050 || this.x < -50 || this.y < -50 || this.y > 650)
- {
- _root.removeFX("powerUpDrain");
- }
- this.x += this.xMov;
- this.y += this.yMov;
- this.clip._x = this.x;
- this.clip._y = this.y;
- }
- }
-